def anagrams_check(s1, s2):
    alist = list(s2)
    pos1 = 0
    stillOK = True
    while pos1 < len(s1) and stillOK:
        pos2 = 0
        found = False
        while pos2 < len(alist) and not found:
            if s1[pos1] == alist[pos2]:
                found = True
            else:
                pos2 += 1
        if found:
            alist[pos2] = None
        else:
            stillOK = False
        pos1 += 1
    return stillOK


print(anagrams_check('adffghhjkkl', 'abc'))


def anagrams_check_self(s1, s2):
    flag = True
    post = 0
    if len(s1) == len(s2):
        while post < len(s1) and flag:
            if s1[post] != s2[post]:
                flag = False
                break
            post += 1
    else:
        flag = False
    return flag


print(anagrams_check_self('ssdf', 'asdf'))
